<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/adsproject/abnormal/Ads_TaskLog.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/adsproject/abnormal/Ads_TaskLog.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Ads_TaskLog",
        setup() {
            const table = ref({
                key: "TaskLogId",
                footer: "Foots",
                cnName: "异常任务记录表",
                name: "abnormal/Ads_TaskLog",
                newTabEdit: false,
                url: "/Ads_TaskLog/",
                sortName: "TaskLogId"
            });
            const editFormFields = ref({"Operator":"","TaskId":"","OperationType":"","Operation":""});
            const editFormOptions = ref([[{"title":"异常任务ID","required":true,"field":"TaskId","type":"number"},
                               {"dataKey":"Sys_User","data":[],"title":"处理人","required":true,"field":"Operator"}],
                              [{"dataKey":"Ads_Abnormal_Operation","data":[],"title":"操作","field":"Operation","type":"number"},
                               {"dataKey":"Ads_Abnormal_OperationType","data":[],"title":"状态 ","field":"OperationType","type":"number"}]]);
            const searchFormFields = ref({"Task.TaskCode":"","OperationType":"","Operation":"","Operator":""});
            const searchFormOptions = ref([[{"title":"任务编号","field":"Task.TaskCode","type":"like"},{"dataKey":"Ads_Abnormal_Operation","data":[],"title":"操作","field":"Operation","type":"select"},{"dataKey":"Ads_Abnormal_OperationType","data":[],"title":"状态 ","field":"OperationType","type":"select"},{"dataKey":"Sys_User","data":[],"title":"处理人","field":"Operator","type":"select"}]]);
            const columns = ref([{field:"Task.TaskCode",title:"任务编号",type:"string",width:120,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"OperationType",title:"状态 ",type:"int",bind:{ key:"Ads_Abnormal_OperationType",data:[]},width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Operation",title:"操作",type:"int",bind:{ key:"Ads_Abnormal_Operation",data:[]},width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Operator",title:"处理人",type:"string",bind:{ key:"Sys_User",data:[]},width:120,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"TaskLogId",title:"异常任务记录ID",type:"bigint",width:120,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"TaskId",title:"异常任务ID",type:"bigint",width:120,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:120,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:120,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:120,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:120,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:120,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:120,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:120,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
